<?php

class ControllerImpl extends Controller
{

  protected function callAction($action)
  {
    try {
      return parent::callAction($action);
    }
    catch (LoginRequiredException $e) {
      $this->response->redirect($this->response->makeUrl('/account', array('action' => 'login')));
      $this->response->render();
    }
  }

}
